import strutils, sequtils

proc abbreviate*(text: string): string =
  foldl(text, 
    if b in Letters and a.state:
      (a.result & b.toUpperAscii, false)
    else:
      (a.result, b notin Letters and b != '\''),
    (result: "", state: true)).result


    
